var express = require('express');
var router = express.Router();


/*
* 处理通用的数据
* */
router.use(function (req, res, next) {
  next();
});

/*
* 首页
* */
router.get('/', function (req, res, next) {
  res.render('myfresh/index')
});

router.get('/about', function (req, res) {
  res.render('myfresh/about')
});
router.get('/news', function (req, res) {
  res.render('myfresh/news')
});
router.get('/cart', function (req, res) {
  res.render('myfresh/cart')
});

router.get('/product', function (req, res) {
  res.render('myfresh/product')
});
router.get('/product/detials', function (req, res) {
  res.render('myfresh/product_details')
});
router.get('/contact', function (req, res) {
  res.render('myfresh/contact')
});
router.get('/login', function (req, res) {
  res.render('myfresh/login')
});
router.get('/register', function (req, res) {
  // res.send('123');
  res.render('myfresh/register')
});



module.exports = router;